#include "mainwindow.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
    qreal  cx = GetSystemMetrics(SM_CXSCREEN);
    qreal scale = cx / 600;
    if(scale >= 0.7) {
        scale = 1;
    }
    qputenv("QT_SCALE_FACTOR", QString::number(scale).toLatin1());

    QApplication a(argc, argv);
    a.setAttribute(Qt::AA_DontShowIconsInMenus);
    MainWindow w;

    w.show();

    return a.exec();
}
